really fix mkpatches to work correctly.
authorvhanquez@kneesa.uk.xensource.com <vhanquez@kneesa.uk.xensource.com>
Thu, 8 Dec 2005 08:57:55 +0000 (08:57 +0000)
committervhanquez@kneesa.uk.xensource.com <vhanquez@kneesa.uk.xensource.com>
Thu, 8 Dec 2005 08:57:55 +0000 (08:57 +0000)
unfortunately, add some code duplication in mkpatches area.

Signed-off-by: Vincent Hanquez <vincent@xensource.com>
buildconfigs/Rules.mk

index 26ee89472b65e5cf490144c1dfacee0fb5ad0cff..61cd1560270ae4c06c222b7dde111098274060b3 100644 (file)
@@ -110,7 +110,12 @@ endif
 %-config:
        $(MAKE) -f buildconfigs/mk.$* config
 
-linux-2.6-xen.patch: linux-$(LINUX_VER)-xen.patch
+linux-2.6-xen.patch: ref-linux-$(LINUX_VER)/.valid-ref
+       rm -rf tmp-$@
+       cp -al $(<D) tmp-$@
+       ( cd linux-2.6-xen-sparse && ./mkbuildtree ../tmp-$@ )  
+       diff -Nurp $(<D) tmp-$@ > $@ || true
+       rm -rf tmp-$@
 
 %-xen.patch: ref-%/.valid-ref
        rm -rf tmp-$@